SMAHR03000_자궁경부암판정[공단건진].xrw 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHR01000.xrw
  4. * 설 명 : 검사결과관리[일반건진]
  5. * 설 계 자 : 김호익
  6. * 작 성 자 : 김호익
  7. * 작 성 일 : 2007.07.13
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  13. <xhtml:head>
  14. <xhtml:title>Untitle</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <acptinfo>
  20. <item>
  21. <pid/>
  22. <hngnm/>
  23. <rgstno1/>
  24. <rgstno2/>
  25. <sex/>
  26. <age/>
  27. <cmpycd/>
  28. <cmpynm/>
  29. <pkgcd/>
  30. <pkgnm/>
  31. <schlgrde/>
  32. <clsid/>
  33. <stuid/>
  34. <plceflag/>
  35. <orddd/>
  36. <judgdd/>
  37. <judgdrid/>
  38. <drnm/>
  39. <reexamfg/>
  40. </item>
  41. <rsltlst>
  42. <item>
  43. <prcpdd/>
  44. <execprcpuniqno/>
  45. <prcpno/>
  46. <testcd/>
  47. <testnm/>
  48. <testrsltcnts>
  49. </testrsltcnts>
  50. <outtestrsltcnts/>
  51. <rsltunit/>
  52. <rsltflag/>
  53. <remcnts/>
  54. <assorsltcnts/>
  55. <judgcd/>
  56. <judgrsltcnts/>
  57. <inptflag/>
  58. <choirslt>
  59. <item/>
  60. </choirslt>
  61. <judgmark/>
  62. <refh/>
  63. <refl/>
  64. </item>
  65. </rsltlst>
  66. <rsltlst2>
  67. <item>
  68. <prcpdd/>
  69. <execprcpuniqno/>
  70. <prcpno/>
  71. <testcd/>
  72. <testnm/>
  73. <testrsltcnts>
  74. </testrsltcnts>
  75. <outtestrsltcnts/>
  76. <rsltunit/>
  77. <rsltflag/>
  78. <remcnts/>
  79. <assorsltcnts/>
  80. <judgcd/>
  81. <judgrsltcnts/>
  82. <inptflag/>
  83. <choirslt>
  84. <item/>
  85. </choirslt>
  86. <judgmark/>
  87. <refh/>
  88. <refl/>
  89. </item>
  90. </rsltlst2>
  91. <judginfo>
  92. <cervcncrjudg>
  93. <judgdd/>
  94. <judgdrid/>
  95. <cervcncrspcstat/>
  96. <cervpreepithelialcellyn/>
  97. <cervcncrkinddiag/>
  98. <cervcncrkinddiagrem/>
  99. <flatepithelialcelltrob/>
  100. <flatepithelialcelltrobstat/>
  101. <preepithelialcelltrob/>
  102. <preepithelialcelltrobrem/>
  103. <cervcncraddcmt/>
  104. <cervcncraddcmtrem/>
  105. <judgflag/>
  106. <oldcervcncrpatyn/>
  107. <judgexamcnts/>
  108. </cervcncrjudg>
  109. <specjudg/>
  110. <genrjudg/>
  111. </judginfo>
  112. <inqrlst>
  113. <item>
  114. <inqrcd/>
  115. <inqrnm/>
  116. <answcd/>
  117. <answcnts/>
  118. <remcnts/>
  119. <answflag/>
  120. <inptflag/>
  121. <inqrflag/>
  122. </item>
  123. </inqrlst>
  124. </acptinfo>
  125. <tempinfo>
  126. <rslttext>
  127. <rsltcnts/>
  128. <rslt_idx/>
  129. <rslt_col/>
  130. </rslttext>
  131. <anslst>
  132. <anslst>
  133. <item>
  134. <answcd/>
  135. <answcnts/>
  136. <answcnts/>
  137. <reminptyn/>
  138. </item>
  139. </anslst>
  140. </anslst>
  141. <choilst>
  142. <item3>
  143. <sel/>
  144. <rsltcd/>
  145. <rsltnm/>
  146. </item3>
  147. <item4>
  148. <sel/>
  149. <rsltcd/>
  150. <rsltnm/>
  151. </item4>
  152. </choilst>
  153. <answcd/>
  154. <assorsltlst>
  155. <itemasso>
  156. <sel/>
  157. <rsltcd/>
  158. <rsltnm/>
  159. </itemasso>
  160. </assorsltlst>
  161. </tempinfo>
  162. </main>
  163. </root>
  164. </instance>
  165. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  166. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  167. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  168. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  169. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  170. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  171. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  172. <script type="javascript" src="../../../com/signweb/js/ZES001.js"/>
  173. <submission id="TXAHR01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
  174. <submission id="TXAHB02402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/temp"/>
  175. <submission id="TRAHR01004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/acptinfo/judginfo"/>
  176. <submission id="TXAHR02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
  177. <submission id="TXAHR03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
  178. <submission id="TRAHR03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/acptinfo/judginfo"/>
  179. </model>
  180. <script type="javascript">
  181. <![CDATA[
  182. var m_vHealexamflag = "G";
  183. function fViewNum(){
  184. window.parent.javascript.vidx = "1";
  185. }
  186. /**
  187. * 소견 및 조치내용 가져오기
  188. * 소견및 조치내용은 종합판정문구 관리에서 건진구분 - 일반으로 관리.
  189. * vEditObj : 선택한 판정내용이 입력될 입력컨트롤명
  190. * SPAHR00300_PARAM1: 다중선택여부(Y/N)
  191. * SPAHR00300_PARAM2: 목적노드Set
  192. * SPAHR00300_PARAM3: 종합판정문구코드 목적노드
  193. * SPAHR00300_PARAM4: 종합판정문구내용 목적노드
  194. * SPAHR00300_PARAM5: 종합판정문구검색코드
  195. * SPAHR00300_PARAM6: 종합판정문구검색내용
  196. * SPAHR00300_PARAM7: 건진구분
  197. */
  198. function fGetJudgExmpCnts(vEditObj,jCode){
  199. if( vEditObj == null ) return ;
  200. model.makeNode("/root/temp/judgexaminfo");
  201. setParameter("SPAHR00300_PARAM1", "Y");
  202. setParameter("SPAHR00300_PARAM2", "/root/temp/judgexaminfo");
  203. setParameter("SPAHR00300_PARAM7", fGetHealExamFlag() );
  204. setParameter("SPAHR00300_PARAM8", jCode );
  205. modal("SPAHR00300", 100, 100, "SPAHR00300");
  206. if( model.getValue("/root/temp/SPAHR00300/okflag") != "ok" ) return ;
  207. var vNodeList = instance1.selectNodes("/root/temp/judgexaminfo/list");
  208. if( vNodeList == null ) reutrn ;
  209. var vJudgCnts = model.getValue( vEditObj.attribute("ref") );
  210. for( var i = 0 ; i < vNodeList.length ; i++){
  211. vJudgCnts += "- "+vNodeList.item(i).judghangcnts.text;
  212. }
  213. model.setValue( vEditObj.attribute("ref") , vJudgCnts );
  214. vEditObj.refresh();
  215. }
  216. function fCheckExamInfo(){
  217. var idx = window.parent.grd_acptlst.row;
  218. if( idx < 1) {
  219. //messageBox("수진자를 ", "C002");
  220. return false;
  221. }
  222. model.copyNode("/root/main/acptinfo/item", window.parent.grd_acptlst.nodeset + "[" + idx + "]");
  223. //결과내역가져오기
  224. var sNode = window.parent.grd_acptlst.nodeset + "[" + idx + "]/";
  225. var rsrvdd = window.parent.model.getValue(sNode + "rsrvdd");
  226. var rsrvno = window.parent.model.getValue(sNode + "rsrvno");
  227. var pid = window.parent.model.getValue(sNode + "pid");
  228. var orddd = window.parent.model.getValue(sNode + "orddd");
  229. var cretno = window.parent.model.getValue(sNode + "cretno");
  230. var pkgcd = window.parent.model.getValue(sNode + "pkgcd");
  231. if( (pid == "" ) || (orddd=="") || (cretno == "") || (rsrvdd == "") || (rsrvno == "") ){
  232. messageBox("유효하지 않은 데이터 입니다!", "E999");
  233. return false;
  234. }
  235. model.setValue("/root/send/srchrsrvdd" , rsrvdd );
  236. model.setValue("/root/send/srchrsrvno" , rsrvno );
  237. model.setValue("/root/send/srchpid" , pid );
  238. model.setValue("/root/send/srchorddd" , orddd );
  239. model.setValue("/root/send/srchcretno" , cretno );
  240. model.setValue("/root/send/srchhealexamflag" , fGetHealExamFlag() );
  241. model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd") );
  242. //model.setValue("/root/send/srchpkgcd" , pkgcd);
  243. }
  244. /**
  245. *건진내역별 상세내역가져오기( 판정내역조회)
  246. *건진구분/건진일자/검사실/환자id/단체코드/패키지코드별 조회
  247. */
  248. function fGetJudgInfo( ){
  249. if( fCheckExamInfo() == false ) return ;
  250. openLoadingBar("판정정보 ") ;//처리중 화면을 오픈한다.
  251. model.makeValue("root/send/srchhealexamflag","G");
  252. submit("TRAHR03001") ;
  253. // 특정값에 따라 Disabled 여부 결정
  254. fDisabledChk();
  255. closeLoadingBar() ;//처리중 화면을 close한다.
  256. }
  257. /**===================================================================================
  258. @desc : 공통 저장정보관련 check
  259. *접수정보 : 건진구분/건진상세구분/예약일자/예약번호/등록번호/진료일자
  260. *저장구분 : I=> 문진만, R=>결과만, J1 => 1차판정만 ...
  261. =====================================================================================*/
  262. function fCheckSaveInfo(){
  263. var idx = opener.grd_acptlst.row;
  264. if( idx < 1 ) {
  265. return false;
  266. }
  267. if( m_vHealexamflag == "" ) {
  268. messageBox("업무구분이 존재하지 않습니다.", "E999");
  269. return false;
  270. }
  271. var vAcptNode = opener.grd_acptlst.nodeset + "[" + idx;
  272. model.removenode("/root/send/save");
  273. model.refresh();
  274. var idx = window.parent.grd_acptlst.row;
  275. if( idx < 1) {
  276. //messageBox("수진자를 ", "C002");
  277. return false;
  278. }
  279. //결과내역가져오기
  280. var sNode = window.parent.grd_acptlst.nodeset + "[" + idx + "]/";
  281. var rsrvdd = window.parent.model.getValue(sNode + "rsrvdd");
  282. var rsrvno = window.parent.model.getValue(sNode + "rsrvno");
  283. var pid = window.parent.model.getValue(sNode + "pid");
  284. var orddd = window.parent.model.getValue(sNode + "orddd");
  285. var cretno = window.parent.model.getValue(sNode + "cretno");
  286. var pkgcd = window.parent.model.getValue(sNode + "pkgcd");
  287. model.makeValue("/root/main/acptinfo/judginfo/cervcncrjudg/healexamflag" , m_vHealexamflag );
  288. model.makeValue("/root/main/acptinfo/judginfo/cervcncrjudg/healexamdetlflag" , fGetHealExamFlag() );
  289. model.makeValue("/root/main/acptinfo/judginfo/cervcncrjudg/rsrvdd" , rsrvdd );
  290. model.makeValue("/root/main/acptinfo/judginfo/cervcncrjudg/rsrvno" , rsrvno );
  291. model.makeValue("/root/main/acptinfo/judginfo/cervcncrjudg/pid" , pid );
  292. model.makeValue("/root/main/acptinfo/judginfo/cervcncrjudg/orddd" , orddd );
  293. model.makeValue("/root/main/acptinfo/judginfo/cervcncrjudg/cretno" , cretno );
  294. model.makeValue("/root/main/acptinfo/judginfo/cervcncrjudg/pkgcd" , pkgcd );
  295. model.makeValue("/root/main/acptinfo/judginfo/cervcncrjudg/sex" , model.getValue("/root/main/acptinfo/item/sex") );
  296. model.makeValue("/root/main/acptinfo/judginfo/cervcncrjudg/age" , model.getValue("root/main/acptinfo/item/age") );
  297. model.makeValue("/root/main/acptinfo/judginfo/cervcncrjudg/judgcd" , "C");
  298. return true ;
  299. }
  300. /*===================================================================================
  301. ** 판정입력구분
  302. *1 - 1차 + 구강
  303. *2 - 2차
  304. *S - 특수건진
  305. *B - 혈액정밀
  306. *C - 암건진
  307. ===================================================================================*/
  308. function fGetJudgInptFlag() {
  309. var judg_idx = swt_judg.selectedIndex ;
  310. var ret = "1" ;
  311. switch ( judg_idx ) {
  312. case 0:
  313. ret = "1" ;
  314. break;
  315. case 1:
  316. ret = "2" ;
  317. break;
  318. case 2:
  319. ret = "1" ;
  320. break;
  321. case 3:
  322. ret = "S" ;
  323. break;
  324. case 4:
  325. ret = "B" ;
  326. break;
  327. case 5:
  328. ret = "C" ;
  329. break;
  330. default:
  331. ret = "1" ;
  332. break;
  333. }
  334. return ret;
  335. }
  336. /**===================================================================================
  337. @desc : 판정입력
  338. *접수정보 : 건진구분/건진상세구분/예약일자/예약번호/등록번호/진료일자
  339. *판정내역 :
  340. @param :bCheckSave => true이면 저장기본정보 check.
  341. 전체저장시는 저장기본정보를 check할 필요가 없으므로...pass하도록...하기위해.
  342. =====================================================================================*/
  343. function fSaveJudg( bCheckSave ){
  344. var ret = false;
  345. var signedData = "";
  346. if( bCheckSave == true ){
  347. if( !fCheckSaveInfo() ) return ret ;
  348. }
  349. //model.setValue("/root/send/save/judginptflag", "L" );
  350. if( model.getValue( cmb_cervcncrjudgdrid.attribute("ref") ) == "" ) {
  351. messageBox("판정의를 ", "C001");
  352. return ret;
  353. }
  354. model.makeNode("/root/send/save/savejudg");
  355. model.resetInstanceNode("/root/send/save/savejudg");
  356. model.copyNode("/root/send/save/savejudg", "/root/main/acptinfo/judginfo/cervcncrjudg");
  357. var cervcncr_judg = getNodeListCSV(instance1.selectNodes("/root/main/acptinfo/judginfo/cervcncrjudg"));
  358. // 인증저장만 콜한다. 인증데이터 저장은 하지 않음
  359. /************************************************************************************************************
  360. 2010.04.27. 여의도 성모병원 산업의학센터 정은덕 선생님 요청으로 인증저장 주석처리함.
  361. *************************************************************************************************************/
  362. //signedData = zesfSignData( cervcncr_judg , getUserId(), true );
  363. //if(signedData == null || signedData == "") return;
  364. openLoadingBar("판정 저장 중입니다..") ;//처리중 화면을 오픈한다.
  365. ret = submit("TXAHR03001");
  366. closeLoadingBar() ;//처리중 화면을 close한다.
  367. //정상적 저장 시 판정내역 재 조회
  368. if(ret == true){
  369. fGetJudgInfo();
  370. }
  371. return ret;
  372. }
  373. /**===================================================================================
  374. @desc : 공통 저장정보관련 초기화
  375. =====================================================================================*/
  376. function fInitSaveData(){
  377. model.resetInstanceNode("/root/send/save");
  378. }
  379. function fInitDasplay() {
  380. //1차건진 판정코드
  381. model.copyNode("/root",opener.root);//parent
  382. nodenumber = 0;
  383. fCtrlSize();
  384. fSetGridInitState(grd_rsltlst);
  385. btn_fstjudg.selected = true;
  386. model.toggle("case_first");
  387. grd_rsltlst.clearStatus();
  388. model.refresh();
  389. // 특정값에 따라 Disabled 여부 결정
  390. fDisabledChk();
  391. }
  392. function fInitDasplayResult(){
  393. model.copyNode("/root", opener.root);//parent
  394. model.refresh();
  395. }
  396. function fdataValue(vTestcd,vSubcd){
  397. var nodeCount = getNodesetCount("/root/main/acptinfo/rsltlst/itemexmp");
  398. for (var i=0; i<=nodeCount;i++){
  399. // if ((model.getValue("/root/main/tempinfo/assorsltlst/itemasso["+i +"]/testcd")==vTestcd) && (model.getValue("/root/main/tempinfo/assorsltlst/itemasso["+i +"]/rsltcd")==vSubcd)){
  400. if ((model.getValue("/root/main/acptinfo/rsltlst/itemexmp["+i +"]/testcd")==vTestcd) && (model.getValue("/root/main/acptinfo/rsltlst/itemexmp["+i +"]/rsltcd")==vSubcd)){
  401. nodenumber = i;
  402. return model.getValue("/root/main/acptinfo/rsltlst/itemexmp["+i+"]/rsltnm");
  403. }
  404. }
  405. }
  406. /**
  407. ** 결과입력 grid size 늘이기/줄이기
  408. */
  409. function fSetRsltSwtSize( bLarge ){
  410. //기존상태 높이
  411. if(getUserInfo("dutplceinstcd") == "011"){
  412. var cur_height = 214;
  413. var max_height = 538 ;
  414. }else{
  415. var cur_height = 214;
  416. var max_height = 558 ;
  417. }
  418. if( bLarge == true ){
  419. cur_height = max_height ;
  420. btn_large.visible = false;
  421. btn_small.visible = true;
  422. }
  423. else {
  424. btn_large.visible = true;
  425. btn_small.visible = false;
  426. }
  427. grd_rsltlst.attribute("height") = parseInt( cur_height ) ;
  428. }
  429. function fdataValueAsso(vTestcd,vSubcd){
  430. var nodeCount = getNodesetCount("/root/main/acptinfo/rsltlst/itemassoexmp");
  431. for (var i=0; i<nodeCount;i++){
  432. if ((model.getValue("/root/main/acptinfo/rsltlst/itemassoexmp["+i +"]/testcd")==vTestcd) && (model.getValue("/root/main/acptinfo/rsltlst/itemassoexmp["+i +"]/rsltcd")==vSubcd)){
  433. nodenumber = i;
  434. return model.getValue("/root/main/acptinfo/rsltlst/itemassoexmp["+i+"]/rsltnm");
  435. }
  436. }
  437. }
  438. // 특정값에 따라 Disabled 여부 결정
  439. function fDisabledChk() {
  440. cmb_cervcncrkinddiag.dispatch("xforms-value-changed");
  441. cmb_flatepithelialcelltrob.dispatch("xforms-value-changed");
  442. cmb_preepithelialcelltrob.dispatch("xforms-value-changed");
  443. cmb_cervcncraddcmt.dispatch("xforms-value-changed");
  444. }
  445. /*사업장코드가 011(여의도성모)일 경우 크기 조정필요*/
  446. function fCtrlSize(){
  447. if(getUserInfo("dutplceinstcd") == "011"){
  448. swt_judg.attribute("height") = 270 + "px";
  449. }else{
  450. swt_judg.attribute("height") = 323 + "px";
  451. }
  452. }
  453. function fSetGridInitState(vGrdObj){
  454. if(vGrdObj == null ) return ;
  455. vGrdObj.rebuildStyle();
  456. vGrdObj.refresh();
  457. var cnt = vGrdObj.rows;
  458. for( var i = 1 ; i <= cnt ; i++){
  459. var testrslt = vGrdObj.valueMatrix(i, vGrdObj.colRef("testrsltcnts"));
  460. var low = vGrdObj.valueMatrix(i, vGrdObj.colRef("minval"));
  461. var high = vGrdObj.valueMatrix(i, vGrdObj.colRef("maxval"));
  462. // 기준치에 따른 색깔변경
  463. if("H" == vGrdObj.valueMatrix( i , vGrdObj.colRef("judgrsltcnts") ) ) {
  464. vGrdObj.cellStyle("background-color" , i , vGrdObj.colRef("judgrsltcnts") , i , vGrdObj.colRef("judgrsltcnts")) = "#ff7a85";
  465. }
  466. if("L" == vGrdObj.valueMatrix( i , vGrdObj.colRef("judgrsltcnts") ) ) {
  467. vGrdObj.cellStyle("background-color" , i , vGrdObj.colRef("judgrsltcnts") , i , vGrdObj.colRef("judgrsltcnts")) = "#ccffcc";
  468. }
  469. //결과값이 하한가와 상한가 범위를 벗어난 경우 색으로 구분(녹색:하한가보다 작은 경우, 분홍색:상한가보다 큰 경우)
  470. if(testrslt != ""){
  471. if(!isNaN(testrslt)){
  472. if(low != ""){
  473. if(eval(testrslt) < eval(low)){
  474. vGrdObj.cellStyle("background-color", i, 7) = "#ccffcc";
  475. }
  476. }
  477. if(high != ""){
  478. if(eval(testrslt) > eval(high)){
  479. vGrdObj.cellStyle("background-color", i, 7) = "#ff7a85";
  480. }
  481. }
  482. }
  483. }else{
  484. continue;
  485. }
  486. }
  487. vGrdObj.refresh();
  488. }
  489. ]]>
  490. </script>
  491. </xhtml:head>
  492. <xhtml:body>
  493. <group id="grp_rslt2" visibility="hidden" style="left:440px; top:55px; width:295px; height:245px; ">
  494. <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:108px; height:14px; ">선택형결과입력</caption>
  495. <datagrid id="datagrid1" nodeset="/root/main/tempinfo/choilst/item4" allowselection="false" caption="V^코드^결과내용" colsep="^" colwidth="24, 35, 200" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" style="left:5px; top:23px; width:285px; height:215px; ">
  496. <col checkvalue="Y,N" ref="sel" type="checkbox" visibility="hidden"/>
  497. <col ref="rsltcd" visibility="visible"/>
  498. <col ref="rsltnm"/>
  499. </datagrid>
  500. <line id="line1" class="line_1" style="x1:5px; y1:20px; x2:290px; y2:20px; "/>
  501. <button id="button1" class="icon_plus" style="left:275px; top:4px; width:13px; height:15px; ">
  502. <caption/>
  503. <script type="javascript" ev:event="DOMActivate">
  504. <![CDATA[
  505. //fAddRsltChoi();
  506. grp_rslt2.visible = false;
  507. ]]>
  508. </script>
  509. </button>
  510. </group>
  511. <group id="grp_choi" visibility="hidden" style="left:35px; top:40px; width:295px; height:245px; ">
  512. <caption id="caption55" class="tit_2" style="left:5px; top:5px; width:108px; height:14px; ">선택형결과입력</caption>
  513. <datagrid id="grd_choilst" nodeset="/root/main/tempinfo/choilst/item3" allowselection="false" caption="V^코드^결과내용" colsep="^" colwidth="24, 14, 207" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" style="left:5px; top:23px; width:285px; height:215px; ">
  514. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  515. <col ref="rsltcd" visibility="hidden"/>
  516. <col ref="rsltnm"/>
  517. </datagrid>
  518. <line id="line35" class="line_1" style="x1:5px; y1:20px; x2:290px; y2:20px; "/>
  519. <button id="btn_choiclose" class="icon_plus" style="left:275px; top:4px; width:13px; height:15px; ">
  520. <caption/>
  521. <script type="javascript" ev:event="DOMActivate">
  522. <![CDATA[
  523. fAddRsltChoi();
  524. grp_choi.visible = false;
  525. ]]>
  526. </script>
  527. </button>
  528. </group>
  529. <group id="grp_textrslt" visibility="hidden" style="left:365px; top:25px; width:295px; height:300px; ">
  530. <caption id="caption58" class="tit_2" style="left:5px; top:10px; width:108px; height:13px; ">서술형결과입력</caption>
  531. <line id="line37" class="line_1" style="x1:5px; y1:25px; x2:290px; y2:25px; "/>
  532. <button id="btn_textclose" class="icon_plus" style="left:275px; top:4px; width:13px; height:15px; ">
  533. <caption/>
  534. <script type="javascript" ev:event="DOMActivate">
  535. <![CDATA[
  536. if( model.getValue("/root/main/tempinfo/rslttext/rslt_col") == window.parent.javaScript.col_rslt ) {
  537. model.setValue("/root/main/acptinfo/rsltlst/item["+ model.getValue("/root/main/tempinfo/rslttext/rslt_idx") +"]/testrsltcnts", tar_textrslt.currentText );
  538. }
  539. grp_textrslt.visible = false;
  540. ]]>
  541. </script>
  542. </button>
  543. <textarea id="tar_textrslt" ref="/root/main/tempinfo/rslttext/rsltcnts" style="left:5px; top:30px; width:285px; height:265px; "/>
  544. <script type="javascript" ev:event="DOMFocusOut">
  545. <![CDATA[
  546. // grp_textrslt.visible = false;
  547. ]]>
  548. </script>
  549. <output id="opt_rsltidx" ref="/root/main/tempinfo/rslttext/rslt_idx" class="output_fix" visibility="hidden" style="left:130px; top:5px; width:36px; height:19px; "/>
  550. <output id="opt_rsltcol" ref="/root/main/tempinfo/rslttext/rslt_col" class="output_fix" visibility="hidden" style="left:175px; top:5px; width:36px; height:19px; "/>
  551. <button id="btn_rsltclose" class="btn2_letter2" style="left:246px; top:4px; width:42px; height:19px; ">
  552. <caption>취소</caption>
  553. <script type="javascript" ev:event="DOMActivate">
  554. <![CDATA[
  555. grp_textrslt.visible = false;
  556. ]]>
  557. </script>
  558. </button>
  559. <button id="btn_rsltsave" class="btn2_letter2" style="left:201px; top:4px; width:42px; height:19px; ">
  560. <caption>저장</caption>
  561. <script type="javascript" ev:event="DOMActivate">
  562. <![CDATA[
  563. if( model.getValue("/root/main/tempinfo/rslttext/rslt_col") == window.parent.javascript.col_rslt ) {
  564. var idx = model.getValue("/root/main/tempinfo/rslttext/rslt_idx");
  565. if( idx < 0) return ;
  566. model.setValue("/root/main/acptinfo/rsltlst/item["+ idx +"]/testrsltcnts", tar_textrslt.currentText );
  567. if( grd_rsltlst.rowStatus(idx) == 0 ) {
  568. grd_rsltlst.rowStatus(idx) = 2;
  569. }
  570. }
  571. grp_textrslt.visible = false;
  572. ]]>
  573. </script>
  574. </button>
  575. </group>
  576. <switch id="swt_judg" style="left:5px; top:240px; width:764px; height:270px; border-color:#c7a3cf; border-style:solid; ">
  577. <case id="case_first" selected="true">
  578. <caption id="caption11" class="cell_2" style="left:5px; top:208px; width:130px; height:49px; text-align:center; vertical-align:middle; ">권고사항</caption>
  579. <input id="ipt_cervcncrjudgdd" ref="/root/main/acptinfo/judginfo/cervcncrjudg/judgdd" class="input_essential" disabled="true" inputtype="date" style="left:138px; top:8px; width:107px; height:19px; "/>
  580. <line id="line31" class="line_1" style="x1:5px; y1:1px; x2:755px; y2:1px; "/>
  581. <line id="line25" class="line_2" style="x1:5px; y1:29px; x2:755px; y2:29px; "/>
  582. <select1 id="cmb_cervcncrjudgdrid" ref="/root/main/acptinfo/judginfo/cervcncrjudg/judgdrid" class="combo" appearance="minimal" style="left:515px; top:8px; width:84px; height:19px; ">
  583. <choices>
  584. <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
  585. <label ref="drnm"/>
  586. <value ref="drid"/>
  587. </itemset>
  588. </choices>
  589. </select1>
  590. <caption id="caption36" class="cell_2" style="left:382px; top:6px; width:130px; height:23px; text-align:center; vertical-align:middle; ">판정의</caption>
  591. <caption id="caption37" class="cell_2" style="left:5px; top:6px; width:130px; height:23px; text-align:center; vertical-align:middle; ">판정일자</caption>
  592. <line id="line12" class="line_3" style="x1:5px; y1:258px; x2:755px; y2:258px; "/>
  593. <caption id="caption4" class="cell_2" style="left:5px; top:32px; width:130px; height:23px; text-align:center; vertical-align:middle; ">검체상태</caption>
  594. <line id="line2" class="line_2" style="x1:5px; y1:55px; x2:755px; y2:55px; "/>
  595. <caption id="caption2" class="cell_2" style="left:5px; top:58px; width:130px; height:23px; text-align:center; vertical-align:middle; ">유형별진단</caption>
  596. <line id="line3" class="line_2" style="x1:5px; y1:81px; x2:755px; y2:81px; "/>
  597. <caption id="caption6" class="cell_2" style="left:5px; top:84px; width:130px; height:23px; text-align:center; vertical-align:middle; ">편평상피세포이상</caption>
  598. <line id="line4" class="line_2" style="x1:5px; y1:133px; x2:755px; y2:133px; "/>
  599. <caption id="caption9" class="cell_2" style="left:5px; top:110px; width:130px; height:23px; text-align:center; vertical-align:middle; ">추가소견</caption>
  600. <caption id="caption14" class="cell_2" style="left:5px; top:136px; width:130px; height:64px; text-align:center; vertical-align:middle; ">판정구분</caption>
  601. <line id="line6" class="line_2" style="x1:5px; y1:200px; x2:755px; y2:200px; "/>
  602. <caption id="caption16" class="cell_2" style="left:382px; top:84px; width:130px; height:23px; text-align:center; vertical-align:middle; ">선상피세포이상</caption>
  603. <select1 id="rdo_cervcncrspcstat" ref="/root/main/acptinfo/judginfo/cervcncrjudg/cervcncrspcstat" appearance="full" cols="3" overflow="visible" style="left:138px; top:34px; width:237px; height:20px; border-style:none; ">
  604. <choices>
  605. <itemset nodeset="/root/init/judginfo/cervcncrspcstatlst/G062">
  606. <label ref="cdnm"/>
  607. <value ref="cdid"/>
  608. </itemset>
  609. </choices>
  610. </select1>
  611. <select1 id="cmb_cervcncrkinddiag" ref="/root/main/acptinfo/judginfo/cervcncrjudg/cervcncrkinddiag" class="combo" appearance="minimal" style="left:138px; top:60px; width:237px; height:19px; ">
  612. <choices>
  613. <itemset nodeset="/root/init/judginfo/cervcncrkinddiaglst/G063">
  614. <label ref="cdnm"/>
  615. <value ref="cdid"/>
  616. </itemset>
  617. </choices>
  618. <script type="javascript" ev:event="xforms-value-changed">
  619. <![CDATA[
  620. var cervcncrkinddiag = model.getValue("/root/main/acptinfo/judginfo/cervcncrjudg/cervcncrkinddiag");
  621. var bol = isSearchString(cervcncrkinddiag ,"3");
  622. if (bol == true) {
  623. ipt_cervcncrkinddiagrem.disabled = false;
  624. } else {
  625. ipt_cervcncrkinddiagrem.disabled = true;
  626. ipt_cervcncrkinddiagrem.value = "";
  627. ipt_cervcncrkinddiagrem.refresh();
  628. }
  629. ]]>
  630. </script>
  631. </select1>
  632. <select1 id="cmb_flatepithelialcelltrob" ref="/root/main/acptinfo/judginfo/cervcncrjudg/flatepithelialcelltrob" class="combo" appearance="minimal" style="left:138px; top:86px; width:172px; height:19px; ">
  633. <choices>
  634. <itemset nodeset="/root/init/judginfo/flatepithelialcelltroblst/G064">
  635. <label ref="cdnm"/>
  636. <value ref="cdid"/>
  637. </itemset>
  638. </choices>
  639. <script type="javascript" ev:event="xforms-value-changed">
  640. <![CDATA[
  641. var flatepithelialcelltrob = model.getValue("/root/main/acptinfo/judginfo/cervcncrjudg/flatepithelialcelltrob");
  642. var bol = isSearchString(flatepithelialcelltrob ,"1");
  643. if (bol == true) {
  644. cmb_flatepithelialcelltrobstat.disabled = false;
  645. } else {
  646. cmb_flatepithelialcelltrobstat.disabled = true;
  647. cmb_flatepithelialcelltrobstat.value = "";
  648. cmb_flatepithelialcelltrobstat.refresh();
  649. }
  650. ]]>
  651. </script>
  652. </select1>
  653. <select1 id="cmb_preepithelialcelltrob" ref="/root/main/acptinfo/judginfo/cervcncrjudg/preepithelialcelltrob" class="combo" appearance="minimal" style="left:515px; top:86px; width:137px; height:19px; ">
  654. <choices>
  655. <itemset nodeset="/root/init/judginfo/preepithelialcelltroblst/G066">
  656. <label ref="cdnm"/>
  657. <value ref="cdid"/>
  658. </itemset>
  659. </choices>
  660. <script type="javascript" ev:event="xforms-value-changed">
  661. <![CDATA[
  662. var preepithelialcelltrob = model.getValue("/root/main/acptinfo/judginfo/cervcncrjudg/preepithelialcelltrob");
  663. var bol = isSearchString(preepithelialcelltrob ,"4");
  664. if (bol == true) {
  665. ipt_preepithelialcelltrobrem.disabled = false;
  666. } else {
  667. ipt_preepithelialcelltrobrem.disabled = true;
  668. ipt_preepithelialcelltrobrem.value = "";
  669. ipt_preepithelialcelltrobrem.refresh();
  670. }
  671. ]]>
  672. </script>
  673. </select1>
  674. <input id="ipt_preepithelialcelltrobrem" ref="/root/main/acptinfo/judginfo/cervcncrjudg/preepithelialcelltrobrem" disabled="true" style="left:655px; top:86px; width:100px; height:19px; "/>
  675. <select1 id="cmb_cervcncraddcmt" ref="/root/main/acptinfo/judginfo/cervcncrjudg/cervcncraddcmt" class="combo" appearance="minimal" style="left:138px; top:112px; width:237px; height:19px; ">
  676. <choices>
  677. <itemset nodeset="/root/init/judginfo/cervcncraddcmtlst/G067">
  678. <label ref="cdnm"/>
  679. <value ref="cdid"/>
  680. </itemset>
  681. </choices>
  682. <script type="javascript" ev:event="xforms-value-changed">
  683. <![CDATA[
  684. var cervcncraddcmt = model.getValue("/root/main/acptinfo/judginfo/cervcncrjudg/cervcncraddcmt");
  685. var bol = isSearchString(cervcncraddcmt ,"6");
  686. if (bol == true) {
  687. ipt_cervcncraddcmtrem.disabled = false;
  688. } else {
  689. ipt_cervcncraddcmtrem.disabled = true;
  690. ipt_cervcncraddcmtrem.value = "";
  691. ipt_cervcncraddcmtrem.refresh();
  692. }
  693. ]]>
  694. </script>
  695. </select1>
  696. <bool id="bol_oldcervcncrpatyn" checkvalue="Y,N" ref="/root/main/acptinfo/judginfo/cervcncrjudg/oldcervcncrpatyn" style="left:142px; top:180px; width:15px; height:15px; border-style:none; "/>
  697. <select1 id="rdo_cervcncrjudgflag" ref="/root/main/acptinfo/judginfo/cervcncrjudg/judgflag" appearance="full" cols="4" vcellspacing="5" overflow="visible" style="left:137px; top:140px; width:618px; height:35px; border-style:none; ">
  698. <choices>
  699. <itemset nodeset="/root/init/judginfo/cervcncrjudgflaglst/G071">
  700. <label ref="cdnm"/>
  701. <value ref="cdid"/>
  702. </itemset>
  703. </choices>
  704. </select1>
  705. <caption id="caption39" style="left:160px; top:179px; width:142px; height:20px; ">기존 자궁경부암 환자여부</caption>
  706. <textarea id="txt_cervcncjudgexamcnts" ref="/root/main/acptinfo/judginfo/cervcncrjudg/judgexamcnts" style="left:138px; top:208px; width:617px; height:49px; "/>
  707. <caption id="caption7" class="cell_2" style="left:382px; top:32px; width:130px; height:23px; text-align:center; vertical-align:middle; ">자궁경부 선상피세포</caption>
  708. <select1 id="rdo_cervpreepithelialcellyn" ref="/root/main/acptinfo/judginfo/cervcncrjudg/cervpreepithelialcellyn" appearance="full" cols="3" overflow="visible" style="left:515px; top:34px; width:237px; height:20px; border-style:none; ">
  709. <choices>
  710. <itemset nodeset="/root/init/judginfo/cervpreepithelialcellynlst/G070">
  711. <label ref="cdnm"/>
  712. <value ref="cdid"/>
  713. </itemset>
  714. </choices>
  715. </select1>
  716. <caption id="caption3" style="left:380px; top:60px; width:151px; height:20px; ">(기타, 자궁내세포 출혈 등 :</caption>
  717. <input id="ipt_cervcncrkinddiagrem" ref="/root/main/acptinfo/judginfo/cervcncrjudg/cervcncrkinddiagrem" disabled="true" style="left:535px; top:60px; width:200px; height:19px; "/>
  718. <caption id="caption19" style="left:737px; top:60px; width:16px; height:20px; ">)</caption>
  719. <line id="line7" class="line_2" style="x1:5px; y1:107px; x2:755px; y2:107px; "/>
  720. <select1 id="cmb_flatepithelialcelltrobstat" ref="/root/main/acptinfo/judginfo/cervcncrjudg/flatepithelialcelltrobstat" class="combo" disabled="true" appearance="minimal" style="left:313px; top:86px; width:62px; height:19px; ">
  721. <choices>
  722. <itemset nodeset="/root/init/judginfo/flatepithelialcelltrobstatlst/G065">
  723. <label ref="cdnm"/>
  724. <value ref="cdid"/>
  725. </itemset>
  726. </choices>
  727. </select1>
  728. <input id="ipt_cervcncraddcmtrem" ref="/root/main/acptinfo/judginfo/cervcncrjudg/cervcncraddcmtrem" disabled="true" style="left:435px; top:112px; width:320px; height:19px; "/>
  729. <caption id="caption5" style="left:380px; top:112px; width:55px; height:20px; ">직접기입</caption>
  730. <button id="btn_cervjudge" class="btn2_letter4" style="left:40px; top:225px; width:100px; height:20px; ">
  731. <caption>권고사항</caption>
  732. <script type="javascript" ev:event="DOMActivate">
  733. <![CDATA[
  734. fGetJudgExmpCnts(txt_cervcncjudgexamcnts,"G016");
  735. ]]>
  736. </script>
  737. </button>
  738. </case>
  739. </switch>
  740. <button id="btn_judg" class="btn5_letter4" style="left:705px; top:220px; width:64px; height:19px; ">
  741. <caption>판정저장</caption>
  742. <script type="javascript" ev:event="DOMActivate">
  743. <![CDATA[
  744. if ( messageBox("판정내역을 ", "Q002") == 6 ) {
  745. fInitSaveData();
  746. fSaveJudg(true);
  747. //fSaveRsltInfo("J");
  748. }
  749. ]]>
  750. </script>
  751. </button>
  752. <button id="btn_fstjudg" class="btn_sw" group="tab" selected="true" style="left:5px; top:219px; width:220px; height:22px; ">
  753. <caption>자궁경부 세포검사, 판정 및 권고</caption>
  754. <toggle case="case_first" ev:event="onclick"/>
  755. </button>
  756. <datagrid id="grd_rsltlst" nodeset="/root/main/acptinfo/rsltlst/item" allowselection="false" caption="처방일자^실시처방&#xA;유일번호^처방번호^검사코드^명칭^연계결과^결과^공단연계^단위^종류^비고^판정코드^판정값^LIS판정^Low^High" colsep="^" colwidth="70, 69, 63, 74, 105, 71, 136, 76, 58, 43, 67, 80, 84, 60, 42, 42" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" tooltip="true" style="left:5px; top:1px; width:764px; height:214px; ">
  757. <col ref="prcpdd" visibility="hidden"/>
  758. <col ref="execprcpuniqno" visibility="hidden"/>
  759. <col ref="prcpno" visibility="hidden"/>
  760. <col ref="testcd"/>
  761. <col ref="testnm"/>
  762. <col ref="outtestrsltcnts"/>
  763. <col ref="testrsltcnts" type="input"/>
  764. <col ref="assorsltcnts" type="input"/>
  765. <col ref="rsltunit"/>
  766. <col disabled="true" ref="rsltflag" type="combo">
  767. <choices>
  768. <itemset nodeset="/root/init/baseinfo/rslttypelst/A0066">
  769. <label ref="cdnm"/>
  770. <value ref="cdid"/>
  771. </itemset>
  772. </choices>
  773. </col>
  774. <col class="gridinput" ref="remcnts" type="input" visibility="hidden"/>
  775. <col ref="judgcd" visibility="hidden"/>
  776. <col ref="judgrsltcnts" visibility="visible"/>
  777. <col ref="judgmark" visibility="hidden"/>
  778. <col ref="minval"/>
  779. <col ref="maxval"/>
  780. <script type="javascript" ev:event="onendedit">
  781. <![CDATA[
  782. if(getUserInfo("dutplceinstcd") == "011"){
  783. if (event.keyCode == 13 ){
  784. grp_asso.visible = false;
  785. if(grd_assorsltlst.rows != 1){
  786. for(var i=grd_assorsltlst.rows; i>=grd_assorsltlst.fixedRows; i--){
  787. grd_assorsltlst.deleteRow(i);
  788. }
  789. }
  790. if (grd_rsltlst.col == window.parent.javascript.col_rslt ) {
  791. //선택형검사결과의 결과컬럼
  792. if ((grd_rsltlst.valueMatrix(grd_rsltlst.row,grd_rsltlst.colRef("rsltflag"))=="O")||(grd_rsltlst.valueMatrix(grd_rsltlst.row,grd_rsltlst.colRef("rsltflag"))=="T")){
  793. var vtestcd = grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("testcd"));
  794. var vsubcd = grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("testrsltcnts"));
  795. var cdata = fdataValue(vtestcd,vsubcd);
  796. if (cdata!=null){
  797. grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("assorsltcnts")) = cdata; //grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("testrsltcnts"));
  798. //grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("testrsltcnts")) = cdata;
  799. }
  800. }
  801. if (grd_rsltlst.valueMatrix(grd_rsltlst.row,grd_rsltlst.colRef("rsltflag"))=="N"){
  802. var maxval = eval(grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("maxval")));
  803. var minval = eval(grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("minval")));
  804. var testrsltcnts = eval(grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("testrsltcnts")));
  805. if(maxval < testrsltcnts){
  806. grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("judgrsltcnts")) = "H";
  807. } else
  808. if(minval > testrsltcnts){
  809. grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("judgrsltcnts")) = "L";
  810. } else {
  811. grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("judgrsltcnts")) = "";
  812. }
  813. }
  814. window.parent.javascript.fCalcRslt(grd_rsltlst.colRef("testrsltcnts"));
  815. window.parent.javascript.fSetJudgStat(grd_rsltlst.colRef("testrsltcnts"));
  816. }
  817. else if(grd_rsltlst.col == window.parent.javaScript.col_assorslt ) {
  818. if (grd_rsltlst.valueMatrix(grd_rsltlst.row,grd_rsltlst.colRef("rsltflag"))=="O"){
  819. //선택형검사결과의 공단결과
  820. var vtestcd = grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("testcd"));
  821. var vsubcd = grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("assorsltcnts"));
  822. var cdata = fdataValueAsso(vtestcd,vsubcd);
  823. if(cdata!=null){
  824. grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("judgcd")) = model.getValue("/root/main/tempinfo/assorsltlst/itemasso["+nodenumber+"]/judgexmpcd");
  825. grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("judgrsltcnts")) = model.getValue("/root/main/tempinfo/assorsltlst/itemasso["+nodenumber+"]/judgexmpcnts");
  826. //grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("testrsltcnts")) = cdata;
  827. grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("assorsltcnts")) = cdata;
  828. }
  829. }
  830. //window.parent.javascript.fSetAssoRslt(grd_rsltlst.labelMatrix(grd_rsltlst.row, window.parent.javaScript.col_assorslt ) );
  831. /*검사결과 자동계산*/
  832. window.parent.javascript.fCalcRslt(grd_rsltlst.colRef("assorsltcnts"));
  833. //window.parent.javascript.fSetJudgStat(grd_rsltlst.colRef("assorsltcnts"));
  834. }
  835. grd_rsltlst.row = grd_rsltlst.row +1;
  836. }
  837. }
  838. ]]>
  839. </script>
  840. <script type="javascript" ev:event="onstartedit">
  841. <![CDATA[
  842. if(getUserInfo("dutplceinstcd") == "011"){
  843. if (grd_rsltlst.valueMatrix(grd_rsltlst.row,grd_rsltlst.colRef("rsltflag"))=="O" && grd_rsltlst.col == grd_rsltlst.colRef("assorsltcnts")){
  844. var testcd = grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("testcd"));
  845. model.removeNodeset("/root/main/tempinfo/assorsltlst/itemasso");
  846. grd_assorsltlst.rebuild();
  847. var nodeCount = getNodesetCount("/root/main/acptinfo/rsltlst/itemassoexmp");
  848. for (var i=0; i<=nodeCount;i++){
  849. if (model.getValue("/root/main/acptinfo/rsltlst/itemassoexmp["+ i +"]/testcd") == testcd){
  850. grd_assorsltlst.addRow();
  851. grd_assorsltlst.valueMatrix(grd_assorsltlst.row, grd_assorsltlst.colRef("rsltcd")) = model.getValue("/root/main/acptinfo/rsltlst/itemassoexmp["+i+"]/rsltcd");
  852. grd_assorsltlst.valueMatrix(grd_assorsltlst.row, grd_assorsltlst.colRef("rsltnm")) = model.getValue("/root/main/acptinfo/rsltlst/itemassoexmp["+i+"]/rsltnm");
  853. }
  854. }
  855. grp_asso.visible = true;
  856. model.refresh();
  857. }
  858. }
  859. ]]>
  860. </script>
  861. </datagrid>
  862. <button id="btn_small" class="icon_top" style="left:5px; top:1px; width:26px; height:19px; ">
  863. <caption/>
  864. <script type="javascript" ev:event="DOMActivate">
  865. <![CDATA[
  866. fSetRsltSwtSize(false);
  867. ]]>
  868. </script>
  869. </button>
  870. <button id="btn_large" class="icon_bottom" style="left:5px; top:1px; width:26px; height:19px; ">
  871. <caption/>
  872. <script type="javascript" ev:event="DOMActivate">
  873. <![CDATA[
  874. fSetRsltSwtSize(true);
  875. ]]>
  876. </script>
  877. </button>
  878. <group id="grp_asso" visibility="hidden" style="left:80px; top:55px; width:275px; height:245px; ">
  879. <caption id="caption57" class="tit_2" style="left:5px; top:5px; width:108px; height:14px; ">공단결과입력</caption>
  880. <datagrid id="grd_assorsltlst" nodeset="/root/main/tempinfo/assorsltlst/itemasso" allowselection="false" caption="코드^결과내용" colsep="^" colwidth="36, 185" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" style="left:5px; top:23px; width:265px; height:215px; ">
  881. <col ref="rsltcd"/>
  882. <col ref="rsltnm"/>
  883. <script type="javascript" ev:event="ondblclick">
  884. <![CDATA[
  885. //그리드의 셀 이외의 곳을 클릭하면 종료한다.
  886. if(!eval(grd_assorsltlst.iscell(event.target))) return false;
  887. // 그리드의 헤더부분을 클릭하면 종료한다.
  888. if(eval(grd_assorsltlst.row) < eval(grd_assorsltlst.fixedRows)) return false;
  889. var idx = grd_assorsltlst.row;
  890. if( idx < 1) return ;
  891. grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("assorsltcnts")) = model.getValue("/root/main/tempinfo/assorsltlst/itemasso[" + idx + "]/rsltnm" );
  892. grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("assorsltcd")) = model.getValue("/root/main/tempinfo/assorsltlst/itemasso[" + idx + "]/rsltcd" );
  893. grd_rsltlst.rowStatus(grd_rsltlst.row) = 2;
  894. var nextRow = grd_rsltlst.row + 1
  895. if(grd_rsltlst.colType(grd_rsltlst.col) == "input" && nextRow < grd_rsltlst.rows) {
  896. grd_rsltlst.row = nextRow;
  897. grd_rsltlst.editCell();
  898. }
  899. if(grd_rsltlst.valueMatrix(nextRow, grd_rsltlst.colRef("rsltflag")) != "O"){
  900. grp_asso.visible = false;
  901. }else{
  902. grp_asso.visible = true;
  903. }
  904. ]]>
  905. </script>
  906. </datagrid>
  907. <line id="line19" class="line_1" style="x1:5px; y1:20px; x2:270px; y2:20px; "/>
  908. <button id="btn_assoclose" class="icon_plus" style="left:255px; top:4px; width:13px; height:15px; ">
  909. <caption/>
  910. <script type="javascript" ev:event="DOMActivate">
  911. <![CDATA[
  912. grp_asso.visible = false;
  913. ]]>
  914. </script>
  915. </button>
  916. </group>
  917. </xhtml:body>
  918. </xhtml:html>